package com.zf.shuashua.common;

import android.app.Application;
import android.content.Context;
import android.content.Intent;

import com.zf.shuashua.advert.H5Activity;

// 跳转路由
public class ARouter {

    private static Application mContext;

    private volatile static ARouter singleton = null;

    private ARouter() {
    }

    public static ARouter getInstance() {
        if (singleton == null) {
            synchronized (ARouter.class) {
                if (singleton == null) {
                    singleton = new ARouter();
                }
            }
        }
        return singleton;
    }

    // 跳转到H5页面
    public void jumpH5(Context context, String url) {
        Intent intent = new Intent(context, H5Activity.class);
        intent.putExtra(H5Activity.LOAD_URL, url);
        context.startActivity(intent);
    }

}
